let sp = 20
let mm = 23
for (let i = 1; i <= mm; i += 2) {
    let ts = ''
    for (let m = sp--; m >= 1; m--) {
        ts += ' '
    }
    for (let j = 1; j <= i; j++) {
        ts += '*'
    }
    console.log(ts)
}
sp += 2
for (let i = mm - 2; i >= 1; i -= 2) {
    let ts = ''
    for (let m = sp++; m >= 1; m--) {
        ts += ' '
    }
    for (let j = 1; j <= i; j++) {
        ts += '*'
    }
    console.log(ts)
}
